package me.demo.base.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import me.boot.common.constant.DbConst;
import me.boot.db.mybatis.template.entity.AutoEntity;
import me.boot.gen.table.annotation.ColumnComment;

/**
 * <p>
 *
 * </p>
 *
 * @author Sylar
 * @since 2021-10-31
 */
@Getter
@Setter
@TableName("sys_tenant")
@ApiModel("SysTenant对象")
public class SysTenant extends AutoEntity {

    /**
     * 租户ID
     */
    @ColumnComment("租户ID")
    @ApiModelProperty("租户ID")
    @TableField(value = DbConst.COLUMN_TENANT_ID, fill = FieldFill.INSERT)
    protected Long tenantId;


    @ApiModelProperty("租户代码")
    @TableField("code")
    private String code;

    @TableField("sub_domain")
    private String subDomain;

    @TableField("ds_config")
    private String dsConfig;


    public static final String NAME = "name";

    public static final String CODE = "code";

    public static final String SUB_DOMAIN = "sub_domain";

    public static final String DS_CONFIG = "ds_config";

}
